package com.eliza.kotlin.design.creation.builder.demo1

/**
 * @version v1.0
 * @ClassName: Director
 * @Description: 指挥者类
 * @Author: 黑马程序员
 */
class Director(  //声明builder类型的变量
    private val builder: Builder
) {
    //组装自行车的功能
    fun construct(): Bike {
        builder.buildFrame()
        builder.buildSeat()
        return builder.createBike()
    }
}